package com.example.baseweather.custome;

import java.util.HashMap;

public class SongParser {
    private static HashMap<Integer, String> lrcMap = new HashMap<>();

//    public static HashMap<String, String> parse(InputStream is) throws IOException {
//        BufferedReader reader = new BufferedReader(new InputStreamReader(is));
//        HashMap<String, String> lyricsMap = new HashMap<>();
//        String line;
//
////        Pattern pattern = Pattern.compile("\$$(\\d{2}:\\d{2}\\.\\d{2})\$$(.*)");
//        while ((line = reader.readLine()) != null) {
//            Matcher matcher = pattern.matcher(line);
//            if (matcher.matches()) {
//                String time = matcher.group(1); // 提取时间
//                String lyric = matcher.group(2); // 提取歌词
//                lyricsMap.put(time, lyric);
//            }
//        }
//        return lyricsMap;
//    }


}
